package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退货通知对象 sle_return_goods
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class SleReturnGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 销售订单id */
    private Long orderId;

    /** 退货编号 */
    @Excel(name = "退货编号")
    private String rgSn;

    /** 入库id */
    private Long bpsId;

    /** 产品id */
    private Long proId;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long rgNum;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setRgSn(String rgSn) 
    {
        this.rgSn = rgSn;
    }

    public String getRgSn() 
    {
        return rgSn;
    }
    public void setBpsId(Long bpsId) 
    {
        this.bpsId = bpsId;
    }

    public Long getBpsId() 
    {
        return bpsId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setRgNum(Long rgNum) 
    {
        this.rgNum = rgNum;
    }

    public Long getRgNum() 
    {
        return rgNum;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("rgSn", getRgSn())
            .append("bpsId", getBpsId())
            .append("proId", getProId())
            .append("rgNum", getRgNum())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
